﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using System.Web.Mvc;

namespace K.ClientOfMVC
{
    public static class MvcPublic
    {
        public static List<SelectListItem> GetBirthdayYear()
        {
            List<SelectListItem> ListStrYear = new List<SelectListItem>();
            for (int iY = 2006; iY > 1960; iY--)
            {
                SelectListItem ListItem = new SelectListItem();
                ListItem.Text = iY.ToString();
                ListItem.Value = iY.ToString();
                ListStrYear.Add(ListItem);
            }
            return ListStrYear;
        }
        public static List<SelectListItem> GetBirthdayMonth()
        {
            List<SelectListItem> ListStrMonth = new List<SelectListItem>();
            for (int iM = 1; iM < 13; iM++)
            {
                SelectListItem ListItem = new SelectListItem();
                ListItem.Text = iM.ToString();
                ListItem.Value = iM.ToString();
                ListStrMonth.Add(ListItem);
            }
            return ListStrMonth;
        }
        public static List<SelectListItem> GetBirthdayDay()
        {
            List<SelectListItem> ListStrDay = new List<SelectListItem>();
            for (int iD = 1; iD < 32; iD++)
            {
                SelectListItem ListItem = new SelectListItem();
                ListItem.Text = iD.ToString();
                ListItem.Value = iD.ToString();
                ListStrDay.Add(ListItem);
            }
            return ListStrDay;
        }
    }
}